import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/jhclothing";

// 查询服饰入库列表
export function listClothingInbound(query) {
  return request({
    url: '/inbound/clothing/list',
    method: 'get',
    params: query
  })
}

// 查询服饰入库详细
export function getClothingInbound(clothingInboundId) {
  return request({
    url: '/inbound/clothing/' + parseStrEmpty(clothingInboundId),
    method: 'get'
  })
}

// 新增服饰入库
export function addClothingInbound(data) {
  return request({
    url: '/inbound/clothing',
    method: 'post',
    data: data
  })
}

// 修改服饰入库
export function updateClothingInbound(data) {
  return request({
    url: '/inbound/clothing',
    method: 'put',
    data: data
  })
}
// 删除服饰入库
export function delClothingInbound(clothingInboundId) {
  return request({
    url: '/inbound/clothing/' + clothingInboundId,
    method: 'delete'
  })
}
